
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '供应商信息',
    enableValidate: true
})

@Injectable()
export class DetailFormComponentViewmodelForm extends Form {
    @NgFormControl({
        id: 'merchantName_28b94db5_uaa2',
        name: "{{merchantName_28b94db5_uaa2}}",
        binding: 'merchantName',
        updateOn: 'blur',
        defaultI18nValue: '商户名称',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    merchantName: FormControl;

    @NgFormControl({
        id: 'merchantCode_68646a76_oga3',
        name: "{{merchantCode_68646a76_oga3}}",
        binding: 'merchantCode',
        updateOn: 'blur',
        defaultI18nValue: '商户编号',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    merchantCode: FormControl;

    @NgFormControl({
        id: 'companyType_9be5c5fb_1y6g',
        name: "{{companyType_9be5c5fb_1y6g}}",
        binding: 'companyType',
        updateOn: 'blur',
        defaultI18nValue: '企业类型',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    companyType: FormControl;

    @NgFormControl({
        id: 'merchantType_6ea9d6f3_e9cb',
        name: "{{merchantType_6ea9d6f3_e9cb}}",
        binding: 'merchantType',
        updateOn: 'blur',
        defaultI18nValue: '商户类型',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    merchantType: FormControl;

    @NgFormControl({
        id: 'fullName_e669cb2c_chdr',
        name: "{{fullName_e669cb2c_chdr}}",
        binding: 'fullName',
        updateOn: 'blur',
        defaultI18nValue: '企业全称',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    fullName: FormControl;

    @NgFormControl({
        id: 'businessLicense_ac799308_2d0v',
        name: "{{businessLicense_ac799308_2d0v}}",
        binding: 'businessLicense',
        updateOn: 'blur',
        defaultI18nValue: '营业执照编码',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    businessLicense: FormControl;

    @NgFormControl({
        id: 'address_cab05dbf_nlq8',
        name: "{{address_cab05dbf_nlq8}}",
        binding: 'address',
        updateOn: 'blur',
        defaultI18nValue: '商户地址',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    address: FormControl;

    @NgFormControl({
        id: 'email_5efb1145_jkgj',
        name: "{{email_5efb1145_jkgj}}",
        binding: 'email',
        updateOn: 'blur',
        defaultI18nValue: '邮箱',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    email: FormControl;

    @NgFormControl({
        id: 'telephone_154a66fc_ee6z',
        name: "{{telephone_154a66fc_ee6z}}",
        binding: 'telephone',
        updateOn: 'blur',
        defaultI18nValue: '联系电话',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    telephone: FormControl;

    @NgFormControl({
        id: 'adminstrator_492900b8_e1zu',
        name: "{{adminstrator_492900b8_e1zu}}",
        binding: 'adminstrator',
        updateOn: 'blur',
        defaultI18nValue: '管理员',
    })
    adminstrator: FormControl;

    @NgFormControl({
        id: 'remark_8a8b27d8_2ndi',
        name: "{{remark_8a8b27d8_2ndi}}",
        binding: 'remark',
        updateOn: 'blur',
        defaultI18nValue: '备注',
    })
    remark: FormControl;

}